ActionController::Routing::Routes.draw do |map|
  map.resources :comments

  map.resources :pages, :member => { :history => :get, :create_comment => :post}

  map.resources :wikis


  map.resources(:users, :member => { :tickets => :get})

  map.resources :sessions
  map.resources :tickets

  map.signup '/signup', :controller => 'users', :action => 'new'
  map.login  '/login', :controller => 'sessions', :action => 'new'
  map.logout '/logout', :controller => 'sessions', :action => 'destroy'

  map.connect '', :controller => "tickets"

  # Allow downloading Web Service WSDL as a file with an extension
  # instead of a file named 'wsdl'

  # Install the default route as the lowest priority.
#  map.connect ':controller/:action/:id.:format'
#  map.connect ':controller/:action/:id'
end
